<?php 
/* SVN FILE: $Id$ */
/* Auditoria Test cases generated on: 2009-12-06 01:12:57 : 1260076197*/
App::import('Model', 'Auditoria');

class AuditoriaTestCase extends CakeTestCase {
	var $Auditoria = null;
	var $fixtures = array('app.auditoria', 'app.tipo', 'app.usuario');

	function startTest() {
		$this->Auditoria =& ClassRegistry::init('Auditoria');
	}

	function testAuditoriaInstance() {
		$this->assertTrue(is_a($this->Auditoria, 'Auditoria'));
	}

	function testAuditoriaFind() {
		$this->Auditoria->recursive = -1;
		$results = $this->Auditoria->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Auditoria' => array(
			'id'  => 1,
			'tipo_id'  => 1,
			'fecha_hora'  => 'Lorem ipsum ',
			'usuario_id'  => 1,
			'detalle'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>